Skip to content

observability: include exception class in retry log lines#64

Open
rmfan wants to merge 1 commit into
prodfrom
feat/log-exception-class
Open

observability: include exception class in retry log lines#64
rmfan wants to merge 1 commit into
prodfrom
feat/log-exception-class

Conversation

@rmfan

@rmfan rmfan commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Include {type(e).__name__} in retry log lines that currently render {e} verbatim.

Why

httpx transport-level exceptions (RemoteProtocolError, ConnectError, PoolTimeout, ConnectTimeout) all stringify to an empty string. Current logs render as Error: , retrying... — no way to discriminate failure classes.

No behavior change — pure log format.

🤖 Generated with Claude Code

httpx transport-level exceptions (RemoteProtocolError, ConnectError,
PoolTimeout, ConnectTimeout) stringify to "" — the current retry logs
render as `Error: , retrying...` with no discriminating information.

Adding `{type(e).__name__}` unblocks classification without changing
behavior.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rmfan rmfan requested a review from a team July 2, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant